cmake_minimum_required(VERSION 3.14)
project(CefWebEngineWidgets)

include(../../cmake/qt.cmake)

find_package(Qt6 COMPONENTS Widgets)

include_directories(../../include/)

file(GLOB SOURCE_FILE_LIST 
    ../../include/CefWebEngineWidgets/*.h 
    *.cpp *.ui
)

add_definitions(-DCEFWEBENGINEWIDGETS_LIB)

add_library(${PROJECT_NAME} SHARED ${SOURCE_FILE_LIST})

target_link_libraries(${PROJECT_NAME} PUBLIC
    Qt::Widgets CefWebEngineCore
)